import {
  wxRequest
} from './wxRequest'

export default {
  /**
   * 品牌商-注册(registerBusiness)
   * @method
   * @name Api#registerBusiness
   */
  registerBusiness(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/business/registerBusiness', 'POST', header)
  },
  /**
   * 获取用户能分配的角色(包括系统默认角色)
   * @method
   * @name Api#getMyRoles
   */
  getMyRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/userRole/getMyRoles', 'GET', header)
  },
  /**
   * 重定向到待办列表页面，并拼接code
   * @method
   * @name Api#redirectTodoTaskList
   */
  redirectTodoTaskList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/redirectTodoTaskList', 'GET', header)
  },
  /**
   * 重定向到待办详情页面，并拼接code
   * @method
   * @name Api#redirectTodoTaskDetail
   */
  redirectTodoTaskDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/redirectTodoTaskDetail', 'GET', header)
  },
  /**
   * 重定向到登录页面，并拼接code
   * @method
   * @name Api#redirectLogin
   */
  redirectLogin(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/redirectLogin', 'GET', header)
  },
  /**
   * web绑定微信（账号密码）
   * @method
   * @name Api#webBindByUsername
   */
  webBindByUsername(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/web/bindByUsername', 'POST', header)
  },
  /**
   * 公众号绑定微信（账号密码）
   * @method
   * @name Api#wxBindByUsername
   */
  wxBindByUsername(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/wx/bindByUsername', 'POST', header)
  },
  /**
   * web绑定微信（手机号验证码）
   * @method
   * @name Api#webBindByMobile
   */
  webBindByMobile(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/web/bindByMobile', 'POST', header)
  },
  /**
   * 公众号绑定微信（手机号验证码）
   * @method
   * @name Api#wxBindByMobile
   */
  wxBindByMobile(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/wx/bindByMobile', 'POST', header)
  },
  /**
   * 小程序解密
   * @method
   * @name Api#decryptData
   */
  decryptData(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/weixin/wxa/decryptData', 'POST', header)
  },
  /**
   * 微信重定向到下载APP页面
   * @method
   * @name Api#downloadApp
   */
  downloadApp(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/downloadApp', 'GET', header)
  },
  /**
   * 重定向到绑定微信页面，并拼接code
   * @method
   * @name Api#redirectBindWx
   */
  redirectBindWx(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/weixin/redirectBindWx', 'GET', header)
  },
  /**
   * 设计师团队-注册(registerDesignerTeam)
   * @method
   * @name Api#registerDesignerTeam
   */
  registerDesignerTeam(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/designerTeam/registerDesignerTeam', 'POST', header)
  },
  /**
   * 获取该用户创建的角色-列表
   * @method
   * @name Api#getRoles
   */
  getRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles', 'GET', header)
  },
  /**
   * 添加（更新）角色
   * @method
   * @name Api#addOrUpdateRole
   */
  addOrUpdateRole(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles', 'POST', header)
  },
  /**
   * 删除角色
   * @method
   * @name Api#deleteRole
   */
  deleteRole(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/{roleId}', 'DELETE', header)
  },
  /**
   * 获取角色-分页
   * @method
   * @name Api#getRolesPage
   */
  getRolesPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/page', 'POST', header)
  },
  /**
   * 获取拥有该角色的所有用户
   * @method
   * @name Api#getRoleUsers
   */
  getRoleUsers(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/{roleId}/users', 'GET', header)
  },
  /**
   * 判断角色编码是否可用
   * @method
   * @name Api#judgeRoleNum
   */
  judgeRoleNum(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/judgeRoleNum', 'GET', header)
  },
  /**
   * 判断角色名称是否可用
   * @method
   * @name Api#judgeRoleName
   */
  judgeRoleName(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/judgeRoleName', 'GET', header)
  },
  /**
   * 获取所有角色-分页
   * @method
   * @name Api#getAllRolesPage
   */
  getAllRolesPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/getAllRolesPage', 'POST', header)
  },
  /**
   * 获取用户能分配的角色-列表
   * @method
   * @name Api#getAssignRoles
   */
  getAssignRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/assignRoles', 'GET', header)
  },
  /**
   * 获取所有角色-列表
   * @method
   * @name Api#getAllRoles
   */
  getAllRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/roles/getAllRoles', 'GET', header)
  },
  /**
   * 服务是否活跃
   * @method
   * @name Api#isActive
   */
  isActive(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/active', 'GET', header)
  },
  /**
   * 加工厂用户-获取分页(getFactoryUserPage)
   * @method
   * @name Api#getFactoryUserPage
   */
  getFactoryUserPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/page', 'GET', header)
  },
  /**
   * 加工厂用户-通过Id查询(getFactoryUser)
   * @method
   * @name Api#getFactoryUser
   */
  getFactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/{id}', 'GET', header)
  },
  /**
   * 加工厂用户-添加|更新(addOrUpdateFactoryUser)
   * @method
   * @name Api#addOrUpdateFactoryUser
   */
  addOrUpdateFactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser', 'POST', header)
  },
  /**
   * 加工厂用户-获取个人信息(getFactoryUserInfo)
   * @method
   * @name Api#getFactoryUserInfo
   */
  getFactoryUserInfo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/ownInfo', 'GET', header)
  },
  /**
   * 加工厂用户-修改个人信息(updateFactoryUser)
   * @method
   * @name Api#updateFactoryUser
   */
  updateFactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/updateFactoryUser', 'POST', header)
  },
  /**
   * 加工厂用户-修改状态(updateFactoryUserState)
   * @method
   * @name Api#updateFactoryUserState
   */
  updateFactoryUserState(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/updateFactoryUserState/{userId}/{state}', 'PUT', header)
  },
  /**
   * 加工厂用户-通过Id删除，支持批量删除(deleteFactoryUser)
   * @method
   * @name Api#deleteFactoryUser
   */
  deleteFactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factoryUser/delete', 'DELETE', header)
  },
  /**
   * 加工厂-获取分页(getFactoryPage)
   * @method
   * @name Api#getFactoryPage
   */
  getFactoryPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factory/page', 'GET', header)
  },
  /**
   * 加工厂-获取当前登录的加工厂信息(getCurrentFactory)
   * @method
   * @name Api#getCurrentFactory
   */
  getCurrentFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factory/getCurrentFactory', 'GET', header)
  },
  /**
   * 加工厂-注册(registerFactory)
   * @method
   * @name Api#registerFactory
   */
  registerFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/factory', 'POST', header)
  },
  /**
   * 加工厂-完善资料|修改信息(addOrUpdateFactory)
   * @method
   * @name Api#addOrUpdateFactory
   */
  addOrUpdateFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factory', 'PUT', header)
  },
  /**
   * 加工厂-审核(reviewFactory)
   * @method
   * @name Api#reviewFactory
   */
  reviewFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/factory/reviewFactory', 'PUT', header)
  },
  /**
   * 加工厂-禁用|启用(updateFactoryState)
   * @method
   * @name Api#updateFactoryState
   */
  updateFactoryState(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/factory/updateFactoryState/{factoryNo}/{accountState}', 'PUT', header)
  },
  /**
   * 加工厂-通过编号删除，支持批量删除(deleteFactory)
   * @method
   * @name Api#deleteFactory
   */
  deleteFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factory/delete', 'DELETE', header)
  },
  /**
   * 加工厂-通过编号查询(getFactory)
   * @method
   * @name Api#getFactory
   */
  getFactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/factory/{factoryNo}', 'GET', header)
  },
  /**
   * 共享工厂-获取当前登录的共享工厂信息(getCurrentSfactory)
   * @method
   * @name Api#getCurrentSfactory
   */
  getCurrentSfactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactory/getCurrentSfactory', 'GET', header)
  },
  /**
   * 共享工厂-添加|更新(addOrUpdateSfactory)
   * @method
   * @name Api#addOrUpdateSfactory
   */
  addOrUpdateSfactory(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactory', 'POST', header)
  },
  /**
   * 共享工厂配置-通过Id删除，支持批量删除
   * @method
   * @name Api#deleteSfactoryConfig
   */
  deleteSfactoryConfig(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/delete', 'DELETE', header)
  },
  /**
   * 共享工厂配置-通过共享工厂编号查询
   * @method
   * @name Api#getSfactoryConfigBySfactoryNo
   */
  getSfactoryConfigBySfactoryNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/bySfactoryNo', 'GET', header)
  },
  /**
   * 获取共享工厂仓库列表
   * @method
   * @name Api#listWarehouse
   */
  listWarehouse(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/warehouse', 'GET', header)
  },
  /**
   * 共享工厂添加仓库
   * @method
   * @name Api#updateWarehouse
   */
  updateWarehouse(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/warehouse/add', 'POST', header)
  },
  /**
   * 共享工厂配置-获取分页
   * @method
   * @name Api#getSfactoryConfigPage
   */
  getSfactoryConfigPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/page', 'POST', header)
  },
  /**
   * 共享工厂配置-获取列表，用于上拉加载更多
   * @method
   * @name Api#getSfactoryConfigList
   */
  getSfactoryConfigList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/list', 'POST', header)
  },
  /**
   * 共享工厂配置-通过Id查询
   * @method
   * @name Api#getSfactoryConfig
   */
  getSfactoryConfig(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig/{id}', 'GET', header)
  },
  /**
   * 共享工厂配置-添加|更新
   * @method
   * @name Api#addOrUpdateSfactoryConfig
   */
  addOrUpdateSfactoryConfig(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryConfig', 'POST', header)
  },
  /**
   * 获取一个系统全部的菜单按钮树ID（用于数据库添加超级管理员数据）
   * @method
   * @name Api#getMenuIDTree
   */
  getMenuIDTree(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/menus/menuIDTree', 'GET', header)
  },
  /**
   * 获取一个菜单详情
   * @method
   * @name Api#getOneMenu
   */
  getOneMenu(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/menus/{id}', 'GET', header)
  },
  /**
   * 删除一个菜单
   * @method
   * @name Api#deleteMenu
   */
  deleteMenu(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/menus/{id}', 'DELETE', header)
  },
  /**
   * 获取一个系统全部的菜单按钮树(用于菜单管理）
   * @method
   * @name Api#getMenuTree
   */
  getMenuTree(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/menus/menuTree', 'GET', header)
  },
  /**
   * 添加（修改）一个菜单
   * @method
   * @name Api#addMenu
   */
  addMenu(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/auth/menus', 'POST', header)
  },
  /**
   * 获取管理员个人信息
   * @method
   * @name Api#getAuthUser
   */
  getAuthUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/ownInfo', 'GET', header)
  },
  /**
   * 获取管理员
   * @method
   * @name Api#getAuthUsers
   */
  getAuthUsers(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users', 'GET', header)
  },
  /**
   * 添加管理员
   * @method
   * @name Api#addAuthUser
   */
  addAuthUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users', 'POST', header)
  },
  /**
   * 更新管理员
   * @method
   * @name Api#updateAuthUser
   */
  updateAuthUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users', 'PUT', header)
  },
  /**
   * 删除管理员（只能删除自己创建的）
   * @method
   * @name Api#deleteUser
   */
  deleteUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users', 'DELETE', header)
  },
  /**
   * 获取用户-分页
   * @method
   * @name Api#getAuthUserPage
   */
  getAuthUserPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/page', 'POST', header)
  },
  /**
   * 获取用户的所有角色
   * @method
   * @name Api#getUserRoles
   */
  getUserRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/roles', 'GET', header)
  },
  /**
   * 添加用户角色关系
   * @method
   * @name Api#addUserRole
   */
  addUserRole(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/auth/users/roles', 'POST', header)
  },
  /**
   * 删除用户角色关系
   * @method
   * @name Api#deleteAuthUserRole
   */
  deleteAuthUserRole(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/roles', 'DELETE', header)
  },
  /**
   * 修改用户可用状态
   * @method
   * @name Api#updateAuthUserState
   */
  updateAuthUserState(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/auth/users/state', 'PUT', header)
  },
  /**
   * 重置自己创建的管理员密码
   * @method
   * @name Api#resetAuthUserPassword
   */
  resetAuthUserPassword(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/auth/users/resetPassword', 'PUT', header)
  },
  /**
   * 修改密码
   * @method
   * @name Api#updateAuthUserPassword
   */
  updateAuthUserPassword(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/auth/users/updatePassword', 'PUT', header)
  },
  /**
   * 获取用户组合的菜单按钮树
   * @method
   * @name Api#getAuthUserMenus
   */
  getAuthUserMenus(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/menus', 'GET', header)
  },
  /**
   * 获取自己所有的权限
   * @method
   * @name Api#getAuthUserPermissions
   */
  getAuthUserPermissions(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/permissions', 'GET', header)
  },
  /**
   * 获取一个用户的信息
   * @method
   * @name Api#getOneUserInfo
   */
  getOneUserInfo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/{userId}', 'GET', header)
  },
  /**
   * 通过idList批量查询用户
   * @method
   * @name Api#getUserByIds
   */
  getUserByIds(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/auth/users/findByIds', 'POST', header)
  },
  /**
   * 共享工厂用户-获取分页(getSfactoryUserPage)
   * @method
   * @name Api#getSfactoryUserPage
   */
  getSfactoryUserPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/page', 'GET', header)
  },
  /**
   * 共享工厂用户-通过Id查询(getSfactoryUser)
   * @method
   * @name Api#getSfactoryUser
   */
  getSfactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/{id}', 'GET', header)
  },
  /**
   * 共享工厂用户-添加|更新(addOrUpdateSfactoryUser)
   * @method
   * @name Api#addOrUpdateSfactoryUser
   */
  addOrUpdateSfactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser', 'POST', header)
  },
  /**
   * 共享工厂用户-分配角色(distributeRoles)
   * @method
   * @name Api#distributeRoles
   */
  distributeRoles(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/distributeRoles', 'POST', header)
  },
  /**
   * 共享工厂用户-修改个人信息(updateSfactoryUser)
   * @method
   * @name Api#updateSfactoryUser
   */
  updateSfactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/updateSfactoryUser', 'POST', header)
  },
  /**
   * 共享工厂用户-通过Id删除，支持批量删除(deleteSfactoryUser)
   * @method
   * @name Api#deleteSfactoryUser
   */
  deleteSfactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/delete', 'DELETE', header)
  },
  /**
   * 共享工厂用户-修改状态(updateSfactoryUserState)
   * @method
   * @name Api#updateSfactoryUserState
   */
  updateSfactoryUserState(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/sfactoryUser/updateSfactoryUserState/{userId}/{state}', 'PUT', header)
  },
  /**
   * 共享工厂用户-获取个人信息(getSfactoryUserInfo)
   * @method
   * @name Api#getSfactoryUserInfo
   */
  getSfactoryUserInfo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/sfactoryUser/ownInfo', 'GET', header)
  },
  /**
   * 手机号验证码登录(telLogin)(clientId:_pc_web/_android_app等)
   * @method
   * @name Api#telLogin
   */
  telLogin(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/user/telLogin', 'POST', header)
  },
  /**
   * 重置密码
   * @method
   * @name Api#resetPwd
   */
  resetPwd(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/user/resetPwd', 'POST', header)
  },
  /**
   * 微信扫码登录
   * @method
   * @name Api#wxQrCodeLogin
   */
  wxQrCodeLogin(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/user/wxQrCodeLogin', 'POST', header)
  },
  /**
   * 微信H5通过code获取token
   * @method
   * @name Api#wxGetToken
   */
  wxGetToken(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/user/wxGetToken', 'POST', header)
  },
  /**
   * 微信H5获取已绑定的用户信息且包含微信信息
   * @method
   * @name Api#wxGetTokens
   */
  wxGetTokens(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/user-server/user/wx/getTokens', 'POST', header)
  },
  /**
   * APP端微信登录
   * @method
   * @name Api#wxLogin
   */
  wxLogin(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/user/wxLogin', 'POST', header)
  },
  /**
   * 发送验证码(sendCaptcha)
   * @method
   * @name Api#sendCaptcha
   */
  sendCaptcha(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/user/sendCaptcha/{mobile}/{type}', 'PUT', header)
  },
  /**
   * 获取当前登录人所属团队的所有用户
   * @method
   * @name Api#getUsersByTeamNo
   */
  getUsersByTeamNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/user/getUsersByTeamNo', 'GET', header)
  },
  /**
   * 获取当前登录人所属团队的所有角色
   * @method
   * @name Api#getRolesByTeamNo
   */
  getRolesByTeamNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/user/getRolesByTeamNo', 'GET', header)
  },
  /**
   * 账号密码登录(userLogin)(clientId:_pc_web/_android_app等)
   * @method
   * @name Api#userLogin
   */
  userLogin(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/user-server/user/login', 'POST', header)
  },
  /**
   * 退出
   * @method
   * @name Api#loginOut
   */
  loginOut(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/user', 'DELETE', header)
  },
  /**
   * 获取图片验证码
   * @method
   * @name Api#generateVcode
   */
  generateVcode(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/user-server/user/getVcode', 'GET', header)
  },
  /**
   * 面料信息维护-面料入库自建查询
   * @method
   * @name Api#getMaterialBySelfParams
   */
  getMaterialBySelfParams(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/product-server/material/getMaterialBySelfParams', 'GET', header)
  },
  /**
   * 面料出入库记录表-获取分页
   * @method
   * @name Api#getMaterialRecordPage
   */
  getMaterialRecordPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialRecord/page', 'GET', header)
  },
  /**
   * 面料出入库记录表-通过Id查询
   * @method
   * @name Api#getMaterialRecord
   */
  getMaterialRecord(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialRecord/{id}', 'GET', header)
  },
  /**
   * 面料存量表-获取分页
   * @method
   * @name Api#getMaterialStorePage
   */
  getMaterialStorePage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialStore/page', 'GET', header)
  },
  /**
   * 面料存量表-通过Id查询
   * @method
   * @name Api#getMaterialStore
   */
  getMaterialStore(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialStore/{id}', 'GET', header)
  },
  /**
   * 面料存量表-通过Id删除，支持批量删除
   * @method
   * @name Api#deleteMaterialStore
   */
  deleteMaterialStore(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialStore/delete', 'DELETE', header)
  },
  /**
   * 面料存量表-入库
   * @method
   * @name Api#inputMaterial
   */
  inputMaterial(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialStore/input', 'POST', header)
  },
  /**
   * 面料存量表-出库
   * @method
   * @name Api#outputMaterial
   */
  outputMaterial(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/product-server/materialStore/output', 'POST', header)
  },
  /**
   * 快递公司code-获取分页
   * @method
   * @name Api#getExpressCompanyCodePage
   */
  getExpressCompanyCodePage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/expressCompanyCode/page', 'GET', header)
  },
  /**
   * 快递公司查询-获取全部列表
   * @method
   * @name Api#getExpressCompanyCodeList
   */
  getExpressCompanyCodeList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/expressCompanyCode/list', 'GET', header)
  },
  /**
   * 面料到货(fabricArrival)
   * @method
   * @name Api#fabricArrival
   */
  fabricArrival(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/fabricArrival', 'PUT', header)
  },
  /**
   * 面料检验(reviewFabric)
   * @method
   * @name Api#reviewFabric
   */
  reviewFabric(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/fabricArrival/review', 'PUT', header)
  },
  /**
   * 面料到货记录
   * @method
   * @name Api#fabricArrivalList
   */
  fabricArrivalList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/fabricArrival/workNo/{workNo}', 'GET', header)
  },
  /**
   * 取消面料到货(cancelFabricArrival)
   * @method
   * @name Api#cancelFabricArrival
   */
  cancelFabricArrival(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/fabricArrival/cancel', 'PUT', header)
  },
  /**
   * 共享工厂首页报表统计
   * @method
   * @name Api#getSfactoryChart
   */
  getSfactoryChart(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/chart/sfactory/{sfactoryNo}/index', 'GET', header)
  },
  /**
   * 共享工厂统计
   * @method
   * @name Api#sfactoryChart
   */
  sfactoryChart(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/chart/sfactory', 'GET', header)
  },
  /**
   * 取消辅料到货(cancelAdjunctArrival)
   * @method
   * @name Api#cancelAdjunctArrival
   */
  cancelAdjunctArrival(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/adjunctArrival/cancel', 'PUT', header)
  },
  /**
   * 辅料到货(adjunctArrival)
   * @method
   * @name Api#adjunctArrival
   */
  adjunctArrival(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/adjunctArrival', 'PUT', header)
  },
  /**
   * 辅料检验(reviewadjunct)
   * @method
   * @name Api#reviewadjunct
   */
  reviewadjunct(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/adjunctArrival/review', 'PUT', header)
  },
  /**
   * 查询物流详情-列表
   * @method
   * @name Api#getFastMailPage
   */
  getFastMailPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/fastMail/list', 'GET', header)
  },
  /**
   * 获取可插单订单(listInsertOrder)
   * @method
   * @name Api#listInsertOrder
   */
  listInsertOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/listInsertOrder', 'GET', header)
  },
  /**
   * 插单保存(insertOrder)
   * @method
   * @name Api#insertOrder
   */
  insertOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/insertOrder', 'PUT', header)
  },
  /**
   * 回复交期(replyDealDate)
   * @method
   * @name Api#replyDealDate
   */
  replyDealDate(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'
    return wxRequest(params, '/order-server/workOrder/reply/deal', 'PUT', header)
  },
  /**
   * 删除工单中待回复交期订单(deleteOrderByWorkNoAndOrderNo)
   * @method
   * @name Api#deleteOrderByWorkNoAndOrderNo
   */
  deleteOrderByWorkNoAndOrderNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/delete/order/{workNo}/{orderNo}', 'DELETE', header)
  },
  /**
   * 修改生产周期(modifyProcessTime)-保存
   * @method
   * @name Api#modifyProcessTime
   */
  modifyProcessTime(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/modifyProcessTime', 'PUT', header)
  },
  /**
   * 修改生产周期(getProcessTime)-生成周期详情
   * @method
   * @name Api#getProcessTime
   */
  getProcessTime(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/process/time/{workNo}', 'GET', header)
  },
  /**
   * 解除工单-订单(所有)绑定关系(工单中有已取消订单的情况)
   * @method
   * @name Api#cancelRelationForWorkAndOrder
   */
  cancelRelationForWorkAndOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/cancel/relation/{workNo}', 'DELETE', header)
  },
  /**
   * 面料异常(fabricException)
   * @method
   * @name Api#fabricException
   */
  fabricException(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/fabricException', 'PUT', header)
  },
  /**
   * 辅料延期(subsidiaryMaterialDelay)
   * @method
   * @name Api#subsidiaryMaterialDelay
   */
  subsidiaryMaterialDelay(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/subsidiaryMateria/delay', 'PUT', header)
  },
  /**
   * 申请终止工单(endWorkOrder)
   * @method
   * @name Api#endWorkOrder
   */
  endWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/endWorkOrder', 'PUT', header)
  },
  /**
   * 所有打印机(getPrinterList)
   * @method
   * @name Api#getPrinterList
   */
  getPrinterList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/printer/getPrinterList', 'GET', header)
  },
  /**
   * 查询加工厂/整衣工工单列表(getFactoryWorkOrderList)
   * @method
   * @name Api#getFactoryWorkOrderList
   */
  getFactoryWorkOrderList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/factory/workOrderList', 'GET', header)
  },
  /**
   * 查询质检工单列表(getFactoryWorkOrderList)
   * @method
   * @name Api#getQAWorkOrderList
   */
  getQAWorkOrderList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/qa/workOrderList', 'GET', header)
  },
  /**
   * 查询单个工单(getWorkOrder)
   * @method
   * @name Api#getWorkOrder
   */
  getWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/getWorkOrder', 'GET', header)
  },
  /**
   * 工单进行中详情
   * @method
   * @name Api#getDoingWorkOrderDetail
   */
  getDoingWorkOrderDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/doing/detail/{workNo}', 'GET', header)
  },
  /**
   * 查询工件列表(getUnitList)
   * @method
   * @name Api#getUnitList
   */
  getUnitList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/getUnitList', 'GET', header)
  },
  /**
   * 唯一码分页(getUnitPage)
   * @method
   * @name Api#getUnitPage
   */
  getUnitPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/getUnitPage', 'GET', header)
  },
  /**
   * 工单抢单-加工厂或整衣工抢单(snatchWorkOrder)
   * @method
   * @name Api#factorySnatchWorkOrder
   */
  factorySnatchWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
	header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/processingFactory/snatchWorkOrder', 'PUT', header)
  },
  /**
   * 加工厂|整衣工 确认接单|拒单(confirmedWorkOrder)
   * @method
   * @name Api#confirmedWorkOrder
   */
  confirmedWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/processingFactory/confirmedWorkOrder', 'PUT', header)
  },
  /**
   * 工单延期申请列表(getDelayApplyList)
   * @method
   * @name Api#getDelayApplyList
   */
  getDelayApplyList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/getDelayApplyList', 'GET', header)
  },
  /**
   * 延期申请详情(getDelayApplyWorkOrderDetail)
   * @method
   * @name Api#getDelayApplyWorkOrderDetail
   */
  getDelayApplyWorkOrderDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/getDelayApplyWorkOrderDetail', 'GET', header)
  },
  /**
   * 申请报废(scrapWorkOrder)
   * @method
   * @name Api#scrapWorkOrder
   */
  scrapWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/scrapWorkOrder', 'POST', header)
  },
  /**
   * 领取裁片(receiveSliceCutting)
   * @method
   * @name Api#receiveSliceCutting
   */
  receiveSliceCutting(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/processingFactory/receiveSliceCutting', 'PUT', header)
  },
  /**
   * 返修单-云工厂返修(repairFactoryWorkOrder)
   * @method
   * @name Api#repairFactoryWorkOrder
   */
  repairFactoryWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/repairFactoryWorkOrder', 'POST', header)
  },
  /**
   * 返修单-自修(selfStudyWorkOrder)
   * @method
   * @name Api#selfStudyWorkOrder
   */
  selfStudyWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/selfStudyWorkOrder', 'POST', header)
  },
  /**
   * 整衣工自修(repairBySfactoryUser)
   * @method
   * @name Api#repairBySfactoryUser
   */
  repairBySfactoryUser(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/repair/sfactory/user', 'POST', header)
  },
  /**
   * 邮寄(mailUnit)
   * @method
   * @name Api#mailUnit
   */
  mailUnit(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/processingFactory/mailUnit', 'POST', header)
  },
  /**
   * 延期详情
   * @method
   * @name Api#getApplyInfo
   */
  getApplyInfo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/{id}', 'GET', header)
  },
  /**
   * 延期申请-获取各个订单信息
   * @method
   * @name Api#delayOrderInfos
   */
  delayOrderInfos(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/delay/orderInfos/{workNo}', 'GET', header)
  },
  /**
   * 延期申请-查询工单的辅料到货状态(0未到货 1已到货)
   * @method
   * @name Api#delayAccessoriesStatus
   */
  delayAccessoriesStatus(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/delay/accessoriesStatus/{workNo}', 'GET', header)
  },
  /**
   * 面料延期管理-质检员
   * @method
   * @name Api#fabricDelay
   */
  fabricDelay(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/qt/fabricDelay', 'GET', header)
  },
  /**
   * 延期管理列表(applyList)
   * @method
   * @name Api#applyList
   */
  applyList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/applyList', 'GET', header)
  },
  /**
   * 单个工单延期记录(workOrderApplyRecord)
   * @method
   * @name Api#workOrderApplyRecord
   */
  workOrderApplyRecord(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/record', 'GET', header)
  },
  /**
   * 整衣工和加工厂查询延期记录
   * @method
   * @name Api#getApplyRecord
   */
  getApplyRecord(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/android/record', 'GET', header)
  },
  /**
   * 改标-拣货完成/取消(modifyOrderOut)
   * @method
   * @name Api#modifyOrderOut
   */
  modifyOrderOut(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/modifyOrder/dis', 'PUT', header)
  },
  /**
   * 待处理/改标中/已完成
   * @method
   * @name Api#pageModifyOrder
   */
  pageModifyOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/modifyOrder/sfactory/page', 'GET', header)
  },
  /**
   * 工单详情(getUnitWorkOrderDetail)
   * @method
   * @name Api#getUnitWorkOrderDetail
   */
  getUnitWorkOrderDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/qualityTestingApi/getUnitWorkOrderDetail', 'GET', header)
  },
  /**
   * 通过工件码获取工单详情(getUnitWorkOrderDetailByUnitNo)
   * @method
   * @name Api#getUnitWorkOrderDetailByUnitNo
   */
  getUnitWorkOrderDetailByUnitNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/qualityTestingApi/workOrder/detail/{unitNo}', 'GET', header)
  },
  /**
   * 开始裁剪
   * @method
   * @name Api#startCrop
   */
  startCrop(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/crop/waiting/start', 'PUT', header)
  },
  /**
   * 待裁剪拆单（按订单、比例拆单）
   * @method
   * @name Api#splitWaitingCropWorkOrder
   */
  splitWaitingCropWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/crop/waiting/split', 'PUT', header)
  },
  /**
   * 待裁剪拆单弹窗
   * @method
   * @name Api#getCropPopup
   */
  getCropPopup(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/crop/waiting/split/popup/{workNo}', 'GET', header)
  },
  /**
   * 开始裁剪弹窗
   * @method
   * @name Api#beginCropPopup
   */
  beginCropPopup(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/crop/waiting/start/popup/{workNo}', 'GET', header)
  },
  /**
   * 打印水洗标(printWashingLabel)
   * @method
   * @name Api#printWashingLabel
   */
  printWashingLabel(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/printWashingLabel', 'PUT', header)
  },
  /**
   * 拆分裁剪单弹窗|裁剪完成弹窗(splitCutWorkOrder)
   * @method
   * @name Api#splitCutWorkOrder
   */
  splitCutWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/splitCutWorkOrder', 'GET', header)
  },
  /**
   * 获取已裁剪比例(getCropRatioDetail)
   * @method
   * @name Api#getCropRatioDetail
   */
  getCropRatioDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getCropRatioDetail', 'GET', header)
  },
  /**
   * 上报实裁数(reportCropNum)
   * @method
   * @name Api#reportCropNum
   */
  reportCropNum(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/reportCropNum', 'POST', header)
  },
  /**
   * 裁剪完成(cropComplete)
   * @method
   * @name Api#cropComplete
   */
  cropComplete(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/cropComplete', 'POST', header)
  },
  /**
   * 撤回|上报实裁数(cancelReportCropNum)
   * @method
   * @name Api#updateCropNumStatus
   */
  updateCropNumStatus(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/cancelReportCropNum', 'PUT', header)
  },
  /**
   * 工单回退到面料采购中(backToFabricPurchase)
   * @method
   * @name Api#backToFabricPurchase
   */
  backToFabricPurchase(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/backToFabricPurchase/{workNo}', 'PUT', header)
  },
  /**
   * 打印水洗标详情(printWashingLabelDetail)
   * @method
   * @name Api#printWashingLabelDetail
   */
  printWashingLabelDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/printWashingLabelDetail', 'GET', header)
  },
  /**
   * 吊牌打印(printTagLabel)
   * @method
   * @name Api#printTagLabel
   */
  printTagLabel(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/printTagLabel', 'PUT', header)
  },
  /**
   * Status-获取状态集合(getStatusDict)
   * @method
   * @name Api#getStatusDict
   */
  getStatusDict(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/status/dict', 'GET', header)
  },
  /**
   * 面料到货|裁剪-共用分页数据
   * @method
   * @name Api#fabricPage
   */
  fabricPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/fabric/page', 'GET', header)
  },
  /**
   * 获取所有工单
   * @method
   * @name Api#pageWorkOrderAll
   */
  pageWorkOrderAll(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/all', 'GET', header)
  },
  /**
   * 订单管理分页|派单分页|质检分页|工单管理(workOrderPage)
   * @method
   * @name Api#workOrderPage
   */
  workOrderPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/workOrderPage', 'GET', header)
  },
  /**
   * 质检|工单详情(getWorkOrderDetail)
   * @method
   * @name Api#getWorkOrderDetail
   */
  getWorkOrderDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getWorkOrderDetail', 'GET', header)
  },
  /**
   * 质检|工单节点详情(getNodeDetail)
   * @method
   * @name Api#getNodeDetail
   */
  getNodeDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getNodeDetail', 'GET', header)
  },
  /**
   * 返修单-抢单(snatchRepairWorkOrder)
   * @method
   * @name Api#snatchRepairWorkOrder
   */
  snatchRepairWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/snatchRepairWorkOrder', 'PUT', header)
  },
  /**
   * 抢单详情(getSnatchRepairDetail)
   * @method
   * @name Api#getSnatchRepairDetail
   */
  getSnatchRepairDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getSnatchRepairDetail', 'GET', header)
  },
  /**
   * (工单/返修单)-延期申请(delayApplyRepairWorkOrder)
   * @method
   * @name Api#delayApplyRepairWorkOrder
   */
  delayApplyRepairWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/delayApplyRepairWorkOrder', 'POST', header)
  },
  /**
   * 延期申请详情(getDelayApplyRepairWorkOrder)
   * @method
   * @name Api#getDelayApplyRepairWorkOrder
   */
  getDelayApplyRepairWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workOrder/getDelayApplyRepairWorkOrder', 'GET', header)
  },
  /**
   * 面料入库时查询的工单列表
   * @method
   * @name Api#getMaterialInputWorkOrderList
   */
  getMaterialInputWorkOrderList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getMaterialInputWorkOrderList', 'GET', header)
  },
  /**
   * 获取面辅料出库单信息
   * @method
   * @name Api#listMaterialInfoAndStore
   */
  listMaterialInfoAndStoreOut(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/material/outputOrder', 'GET', header)
  },
  /**
   * 获取商品面辅料用量及库存
   * @method
   * @name Api#listMaterialInfoAndStore
   */
  listMaterialInfoAndStore(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/material/info', 'GET', header)
  },
  /**
   * 水洗标打印完毕
   * @method
   * @name Api#splitCutWorkOrder
   */
  splitCutWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/print/washTag/printed', 'PUT', header)
  },
  /**
   * 获取可合并的工单(listInsertWorkOrder)
   * @method
   * @name Api#listInsertWorkOrder
   */
  listInsertWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/listInsertWorkOrder', 'GET', header)
  },
  /**
   * 合并工单(mergeWorkOrder)
   * @method
   * @name Api#mergeWorkOrder
   */
  mergeWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/mergeWorkOrder', 'PUT', header)
  },
  /**
   * 拆分裁剪工单(splitCropWorkOrder)
   * @method
   * @name Api#splitCropWorkOrder
   */
  splitCropWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/splitCropWorkOrder', 'PUT', header)
  },
  /**
   * 裁剪中拆分裁剪单(splitWorkOrder)
   * @method
   * @name Api#splitWorkOrder
   */
  splitWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workOrder/croping/split', 'PUT', header)
  },
  /**
   * 派单拆单（按比例、品牌、尺码拆单）(splitWorkOrderByType)
   * @method
   * @name Api#splitWorkOrderByType
   */
  splitWorkOrderByType(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/splitWorkOrderByType', 'PUT', header)
  },
  /**
   * 派单拆单弹窗(businessOrderRatio)
   * @method
   * @name Api#businessOrderRatio
   */
  businessOrderRatio(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/businessOrderRatio', 'GET', header)
  },
  /**
   * 派工单给加工厂或整衣工
   * @method
   * @name Api#dispatchWorkOrder
   */
  dispatchWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workOrder/dispatchWorkOrder', 'PUT', header)
  },
  /**
   * 取消工单派单(取消加工厂或整衣工)(cancelDispatchWorkOrder)
   * @method
   * @name Api#cancelDispatchWorkOrder
   */
  cancelDispatchWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workOrder/cancelDispatchWorkOrder', 'PUT', header)
  },
  /**
   * 获取可派单工厂列表(getFactoryList)
   * @method
   * @name Api#getFactoryList
   */
  getFactoryList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getFactoryList', 'GET', header)
  },
  /**
   * 获取可派单整衣工列表
   * @method
   * @name Api#getSFactoryUserList
   */
  getSFactoryUserList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/getSFactoryUserList', 'GET', header)
  },
  /**
   * 工单-开始抢单操作(snatchWorkOrder)
   * @method
   * @name Api#snatchWorkOrder
   */
  snatchWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workOrder/snatchWorkOrder', 'PUT', header)
  },
  /**
   * 待办/订单申请请求(确定/驳回)(confirmOrderStatus)
   * @method
   * @name Api#confirmOrderStatus
   */
  confirmOrderStatus(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/confirmOrderStatus', 'PUT', header)
  },
  /**
   * 延期申请审核(确定/驳回)(checkDelay)
   * @method
   * @name Api#checkDelay
   */
  checkDelay(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/apply/checkDelay', 'PUT', header)
  },
  /**
   * 返修单-共享工厂接单|拒单(confirmWorkRepair)
   * @method
   * @name Api#confirmWorkRepair
   */
  confirmWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/confirmWorkRepair/{repairNo}/{type}', 'PUT', header)
  },
  /**
   * 返修单-返修工接单|拒单(repairRejectWorkOrder)
   * @method
   * @name Api#repairRejectWorkOrder
   */
  repairRejectWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/repairRejectWorkOrder/{repairNo}/{type}', 'PUT', header)
  },
  /**
   * 返修完成
   * @method
   * @name Api#completeWorkRepair
   */
  completeWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/complete', 'PUT', header)
  },
  /**
   * 返修单分页/待处理接单(getWorkRepairPage)
   * @method
   * @name Api#getWorkRepairPage
   */
  getWorkRepairPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/repair/page', 'GET', header)
  },
  /**
   * 返修单分页/(进行中1|退单2)-移动端(getWorkRepairDoingPage)
   * @method
   * @name Api#getWorkRepairDoingPage
   */
  getWorkRepairDoingPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/page/{status}', 'GET', header)
  },
  /**
   * 返修-历史工单(getWorkRepairHistoryPage)
   * @method
   * @name Api#getWorkRepairHistoryPage
   */
  getWorkRepairHistoryPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/page/history', 'GET', header)
  },
  /**
   * 返修单详情(getWorkRepair)
   * @method
   * @name Api#getWorkRepair
   */
  getWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/{repairNo}', 'GET', header)
  },
  /**
   * 质检返修单详情(getWorkRepair)
   * @method
   * @name Api#getQAWorkRepair
   */
  getQAWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/qa/{repairNo}', 'GET', header)
  },
  /**
   * 共享工厂-返修完成详情(getWorkRepair)
   * @method
   * @name Api#getDoneRepairDetail
   */
  getDoneRepairDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/repair/{repairNo}', 'GET', header)
  },
  /**
   * 返修工单列表(repairWorkOrderListWeb)
   * @method
   * @name Api#repairWorkOrderListWeb
   */
  repairWorkOrderListWeb(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/repairWorkOrderListWeb', 'GET', header)
  },
  /**
   * 返修单开始抢单(startWorkRepair)
   * @method
   * @name Api#startWorkRepair
   */
  startWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/start', 'PUT', header)
  },
  /**
   * 返修单取消抢单(cancelWorkRepair)
   * @method
   * @name Api#cancelSnatchWorkRepair
   */
  cancelSnatchWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/cancel', 'PUT', header)
  },
  /**
   * 返修退单(chargeBackRepairWorkOrder)
   * @method
   * @name Api#chargebackRepairWorkOrder
   */
  chargebackRepairWorkOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/chargeBackRepairWorkOrder', 'POST', header)
  },
  /**
   * 返修单派单(dispatchWorkRepair)
   * @method
   * @name Api#dispatchWorkRepair
   */
  dispatchWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/order-server/workRepair/dispatchWorkRepair', 'PUT', header)
  },
  /**
   * 返修单取消派单(cancelWorkRepair)
   * @method
   * @name Api#cancelWorkRepair
   */
  cancelWorkRepair(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/cancelWorkRepair/{repairNo}', 'PUT', header)
  },
  /**
   * 返修单详情(getWorkRepairDetail)
   * @method
   * @name Api#getWorkRepairDetail
   */
  getWorkRepairDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/getWorkRepairDetail/{repairNo}', 'GET', header)
  },
  /**
   * 返修单节点详情(getWorkRepairNodeDetail)
   * @method
   * @name Api#getWorkRepairNodeDetail
   */
  getWorkRepairNodeDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workRepair/getWorkRepairNodeDetail/{repairNo}/{status}', 'GET', header)
  },
  /**
   * 共享工厂工作中心订单统计(workOrderStatistics)
   * @method
   * @name Api#workOrderStatistics
   */
  workOrderStatistics(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workOrder/workOrderStatistics', 'GET', header)
  },
  /**
   * 工件详情(getUnitDetail)
   * @method
   * @name Api#getUnitDetail
   */
  getUnitDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workUnit/detail/{unitNo}', 'PUT', header)
  },
  /**
   * 工件-查询指定状态的工件(getWorkUnitPage)
   * @method
   * @name Api#getWorkUnitPage
   */
  getWorkUnitPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/workUnit/getWorkUnitPage', 'POST', header)
  },
  /**
   * 获取工件详情
   * @method
   * @name Api#getWorkUnitSimple
   */
  getWorkUnitSimple(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workUnit/simple/{unitNo}', 'GET', header)
  },
  /**
   * 扫描工件码或吊牌码
   * @method
   * @name Api#getUnitDetailOrTagUnits
   */
  getUnitDetailOrTagUnits(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workUnit/tag/{unitNo}', 'GET', header)
  },
  /**
   * 根据工件码查询同一工单下的工件列表
   * @method
   * @name Api#getWorkUnitsByUnitNo
   */
  getWorkUnitsByUnitNo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/workUnit/list/{unitNo}', 'GET', header)
  },
  /**
   * 邮寄记录-获取分页
   * @method
   * @name Api#getMailLogPage
   */
  getMailLogPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/mailLog/page', 'GET', header)
  },
  /**
   * 根据工单号查询邮寄记录
   * @method
   * @name Api#getMailLogList
   */
  getMailLogList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/mailLog/list/{workNo}', 'GET', header)
  },
  /**
   * 裁剪备注-上报
   * @method
   * @name Api#reportCropRemark
   */
  reportCropRemark(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/cropRemark/report', 'POST', header)
  },
  /**
   * 裁剪备注-获取列表
   * @method
   * @name Api#getCropRemarkList
   */
  getCropRemarkList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/cropRemark/list', 'GET', header)
  },
  /**
   * 共享工厂订单表分页(pageOrder)
   * @method
   * @name Api#pageOrder
   */
  pageOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/order/pageOrder', 'GET', header)
  },
  /**
   * 取消订单(cancelOrder)
   * @method
   * @name Api#cancelOrder
   */
  cancelOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    return wxRequest(params, '/order-server/order/cancelOrder', 'PUT', header)
  },
  /**
   * 共享工厂手动合单(manualMergeOrder)
   * @method
   * @name Api#manualMergeOrder
   */
  manualMergeOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/order/manual/merge', 'GET', header)
  },
  /**
   * 共享工厂手动选择部分订单合单(manualMergePartOrder)
   * @method
   * @name Api#manualMergePartOrder
   */
  manualMergePartOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/order/manual/merge/part', 'PUT', header)
  },
  /**
   * 共享工厂拒单
   * @method
   * @name Api#refuseOrder
   */
  refuseOrder(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/order/refuseOrder', 'PUT', header)
  },
  /**
   * 加工厂次品报废出库(factoryOut)
   * @method
   * @name Api#factoryOut
   */
  factoryOut(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/order-server/scrap/factory/out', 'PUT', header)
  },
  /**
   * 询期完毕(inquiryEnd)
   * @method
   * @name Api#inquiryEnd
   */
  inquiryEnd(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/order-server/sfacory/workOrder/inquiry/end', 'PUT', header)
  },
  /**
   * 获取区域树形结构
   * @method
   * @name Api#getAreas
   */
  getAreas(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/sysArea', 'GET', header)
  },
  /**
   * 添加sysArea
   * @method
   * @name Api#addArea
   */
  addArea(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/sysArea', 'POST', header)
  },
  /**
   * 更新sysArea
   * @method
   * @name Api#updateArea
   */
  updateArea(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/sysArea', 'PUT', header)
  },
  /**
   * 获取sysArea
   * @method
   * @name Api#getArea
   */
  getArea(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/sysArea/{id}', 'GET', header)
  },
  /**
   * 删除sysArea
   * @method
   * @name Api#deleteArea
   */
  deleteArea(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/sysArea/{id}', 'DELETE', header)
  },
  /**
   * 获取消息类型绑定的用户和角色
   * @method
   * @name Api#getMsgTypeByMsgTypeId
   */
  getMsgTypeByMsgTypeId(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/msgType/client/{compNo}/msgTypeId/{msgTypeId}', 'GET', header)
  },
  /**
   * 获取当前平台支持的消息类型
   * @method
   * @name Api#getMsgTypeByClientId
   */
  getMsgTypeByClientId(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/msgType/client', 'GET', header)
  },
  /**
   * 机构给消息绑定用户或角色
   * @method
   * @name Api#bindUserOrRole
   */
  bindUserOrRole(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/msgType/client/bind', 'POST', header)
  },
  /**
   * 配置查询(getConfig)
   * @method
   * @name Api#getConfig
   */
  getConfig(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/sysConfig/getConfig', 'GET', header)
  },
  /**
   * 获取上传文件的token
   * @method
   * @name Api#getUploadFileToken
   */
  getUploadFileToken(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/file/files/qiniu/upLoadToken', 'GET', header)
  },
  /**
   * 删除文件
   * @method
   * @name Api#deleteFile
   */
  deleteFile(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/file/files/files', 'DELETE', header)
  },
  /**
   * 七牛客户端获取token后上传到七牛成功，携带有处理参数，返回persistentId回传服务端。
   * @method
   * @name Api#clientUploadSuccess
   */
  clientUploadSuccess(params) {
    const header = {}
    header['Content-Type'] = 'application/x-www-form-urlencoded'
    return wxRequest(params, '/sys-server/file/files/qiniu/clientUploadSuccess', 'POST', header)
  },
  /**
   * 上传文件到七牛服务器,返回文件名称
   * @method
   * @name Api#uploadQiNiuFile
   */
  uploadQiNiuFile(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'multipart/form-data'
    return wxRequest(params, '/sys-server/file/files/qiniu/upload', 'POST', header)
  },
  /**
   * 通过Id获取字典项
   * @method
   * @name Api#getDictItem
   */
  getDictItem(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/{id}', 'GET', header)
  },
  /**
   * 删除数据字典项
   * @method
   * @name Api#deleteDictItem
   */
  deleteDictItem(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/{id}', 'DELETE', header)
  },
  /**
   * 获取字典项-分页
   * @method
   * @name Api#getDictItemPage
   */
  getDictItemPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/page', 'POST', header)
  },
  /**
   * 添加/更新字典项
   * @method
   * @name Api#addOrUpdateDictItem
   */
  addOrUpdateDictItem(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item', 'POST', header)
  },
  /**
   * 校验字典项文本
   * @method
   * @name Api#checkItemText
   */
  checkItemText(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/checkItemText', 'GET', header)
  },
  /**
   * 校验字典项值
   * @method
   * @name Api#checkItemValue
   */
  checkItemValue(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/checkItemValue', 'GET', header)
  },
  /**
   * 获取数据字典-分页
   * @method
   * @name Api#getDictPage
   */
  getDictPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/page', 'POST', header)
  },
  /**
   * 通过Id获取数据字典
   * @method
   * @name Api#getDict
   */
  getDict(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/{id}', 'GET', header)
  },
  /**
   * 删除数据字典
   * @method
   * @name Api#deleteDict
   */
  deleteDict(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/{id}', 'DELETE', header)
  },
  /**
   * 根据字典编码获取字典项
   * @method
   * @name Api#getDictItemList
   */
  getDictItemList(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/item/list/{dictCode}', 'GET', header)
  },
  /**
   * 校验字典编码
   * @method
   * @name Api#checkDictCode
   */
  checkDictCode(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/checkDictCode', 'GET', header)
  },
  /**
   * 校验字典名称
   * @method
   * @name Api#checkDictName
   */
  checkDictName(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/dict/checkDictName', 'GET', header)
  },
  /**
   * 添加/更新数据字典
   * @method
   * @name Api#addOrUpdateDict
   */
  addOrUpdateDict(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/dict', 'POST', header)
  },
  /**
   * 消息阅读情况-通过Id删除，支持批量删除
   * @method
   * @name Api#deleteMessageReadInfo
   */
  deleteMessageReadInfo(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/read_info/delete', 'DELETE', header)
  },
  /**
   * 单个标为已读
   * @method
   * @name Api#readSingle
   */
  readSingle(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/read_info/read/{readId}', 'PUT', header)
  },
  /**
   * 全部已读(一键标记所有未读为已读)
   * @method
   * @name Api#readAll
   */
  readAll(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/read_info/read/all', 'PUT', header)
  },
  /**
   * 消息详情
   * @method
   * @name Api#getReadInfoDetail
   */
  getReadInfoDetail(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/read_info/read/detail/{id}', 'GET', header)
  },
  /**
   * 我收到的消息-获取分页
   * @method
   * @name Api#getMessageReadInfoPage
   */
  getMessageReadInfoPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/read_info/page', 'GET', header)
  },
  /**
   * 百度富文本编辑框获取配置接口
   * @method
   * @name Api#ueditorGetConfig
   */
  ueditorGetConfig(params) {
    const header = {}
    header['Accept'] = 'text/html'
    return wxRequest(params, '/sys-server/file/ueditor', 'GET', header)
  },
  /**
   * 百度富文本编编辑器上传文件接口
   * @method
   * @name Api#ueditorServerUrl
   */
  ueditorServerUrl(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'multipart/form-data'
    return wxRequest(params, '/sys-server/file/ueditor', 'POST', header)
  },
  /**
   * 服务是否活跃
   * @method
   * @name Api#isActive
   */
  isActive(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/active', 'GET', header)
  },
  /**
   * 意见反馈-添加|更新
   * @method
   * @name Api#addOrUpdateFeedback
   */
  addOrUpdateFeedback(params) {
    const header = {}
    header['Accept'] = 'application/json'
    header['Content-Type'] = 'application/json'
    return wxRequest(params, '/sys-server/feedback', 'POST', header)
  },
  /**
   * 意见反馈-通过Id查询(getFeedback)
   * @method
   * @name Api#getFeedback
   */
  getFeedback(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/feedback/{id}', 'GET', header)
  },
  /**
   * 意见反馈-通过Id删除，支持批量删除(deleteFeedback)
   * @method
   * @name Api#deleteFeedback
   */
  deleteFeedback(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/feedback/delete', 'DELETE', header)
  },
  /**
   * 意见反馈-获取分页(getFeedbackPage)
   * @method
   * @name Api#getFeedbackPage
   */
  getFeedbackPage(params) {
    const header = {}
    header['Accept'] = 'application/json'
    return wxRequest(params, '/sys-server/feedback/page', 'GET', header)
  },
}